home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / MacDOS 1.0.1 / MacDOS™ 1.0.1 / MacDOS™ 1.0.1.rsrc / TEXT_138_DECR.txt < prev    next >
Encoding:
Text File  |  1993-10-23  |  771 b   |  17 lines

  1. Decrements or shortens values of variables (MacDOS only).
  2.  
  3. DECR [+ | -]var [BY {number | string}]
  4.  
  5.   [+|-]var  is the name of a variable possibly preceded by a plus
  6.             or minus sign. DECR uses the sign to decide whether to
  7.             operate at the end or at the beginning of the string
  8.             contained in var.
  9.   number    is a signed integer number which DECR subtracts from
  10.             var when var is also numeric. When var is not numeric
  11.             and number is positive, DECR removes characters from
  12.             var (when number is negative, DECR adds spaces instead).
  13.   string    is a non-numeric string. DECR removes it from var
  14.             regardless of whether var is numeric or not.
  15.  
  16. Defaults: "DECR¬†var" is equivalent to "DECR¬†+var¬†BY¬†1"
  17.